<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<?php $title = '添加发票税号'; ?>
<head>
	<meta charset="UTF-8">
	<title><?php echo ($title); ?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<link rel="stylesheet" href="/Application/Home/View//Public/static/css/weui.min.css"/>
    <link rel="stylesheet" href="/Application/Home/View//Public/static/css/jquery-weui.min.css"/>
    <link rel="stylesheet" href="/Application/Home/View//Public/static/css/custom.css"/>
    <style type="text/css">
		body{
			background:#f1f1f1;
			color:#a3a3a3;
			font-family:"Microsoft YaHei";
		}
		.bd{
			padding:20px;
		}
        li{list-style: none;}
		p{
			font-size: 13px;
		}
		.weui-cell_select-before .weui-cell__hd:before{
			border-width: 0px 2px 2px 0;
			margin-top: -6px;
		}
		.weui-cell_select-before .weui-cell__hd:after{border:none;}
        .sstmb {
            padding-bottom: 60px;
        }
        .foot-ul{
			text-align:center;
			margin-top: 1rem;
			padding:10px;
			background: #22a9fe;
			opacity: 0.9;
		}
		.foot-ul a{
			color: #fff;
		}
		.foot-ul a img{
			max-width: 24px;
		}
		.pinglun{
			padding: 0 2px;
			background: #ff5959;
			border-radius: 50px;
			color: #fff;
			position: absolute;
			top:-6px;
			left:73px;
			font-size: 13px;
		}
		
		
		.weui-cell__bd p{
		color:#6b6969;
		}
        
	</style>
</head>

<body ontouchstart>


  <style type="text/css">
    body{
      background: #f4f4f4;
      color:#3b3b3b;
      font-family:"Microsoft YaHei";
    }
    .weui-cell{background: #fff;height: 2rem;}
   .weui-cell:before{left:0;}
   .weui-cell__bd input{
    font-family: '微软雅黑';
    margin-left: 1rem;
   }
.red::-webkit-input-placeholder { /* WebKit browsers */
color:##909090;font-size:16px}
.red::-moz-placeholder { /* Mozilla Firefox 19+ */
color:##909090;font-size:16px}
.red::-ms-input-placeholder { /* Internet Explorer 10+ */
color:##909090;font-size:16px}
  a{color:#22a9fe;}
.weui-input{width: 97%;}
.page{margin-top: .6rem;}
  </style>

    <div class="container js_container">
    </div>
    
    <form action='<?php echo U("index/tax");?>' id='form1' method="POST" onsubmit="return chk_inp();">
<div class="page">
    <div class="weui-cell ">
    <div class="weui-cell__hd"><label class="weui-label">名称</label></div>
    <div class="weui-cell__bd">
      <input  class="weui-input" name='title' placeholder="添加名称" value='<?php echo ($row["title"]); ?>'>
    </div>
  </div> 
  <div class="weui-cell ">
    <div class="weui-cell__hd"><label class="weui-label">税号</label></div>
    <div class="weui-cell__bd">
      <input  class="weui-input" name='code' placeholder="添加税号" value='<?php echo ($row["code"]); ?>'>
    </div>
  </div>
   <p style="height: 2.5rem;line-height: 50px;font-size: 14px;color: #909090;margin-left: 15px;">如果开具增值税专用发票，请填写以下内容</p>
  <a class="weui-cell weui-cell_access" href="javascript:;">
    <div class="weui-cell__hd"><label class="weui-label">单位地址</label></div>
    <div class="weui-cell__bd">
      <input class="weui-input red" name='address'  placeholder="单位地址"  value='<?php echo ($row["address"]); ?>'>
    </div>
     <div class="weui-cell__ft"></div>
  </a>
  <a class="weui-cell weui-cell_access" href="javascript:;">
    <div class="weui-cell__hd"><label class="weui-label">电话号码</label></div>
    <div class="weui-cell__bd">
      <input class="weui-input red" name='phone' type="number" pattern="[0-9]*" placeholder="电话号码" value='<?php echo ($row["phone"]); ?>'>
    </div>
     <div class="weui-cell__ft"></div>
  </a>
   <a class="weui-cell weui-cell_access" href="javascript:;">
     <div class="weui-cell__bd"><label for="name" class="weui-label">开户银行</label></div>
      <div class="weui-cell__ft">
      <input style="text-align: left;margin-right: 1.6rem;width:95%;color:#909090; font-family: 'Microsoft YaHei';" class="weui-input" id="mobile" type="text" value="" name='bank'  value='<?php echo ($row["bank"]); ?>'>
      </div>
    </a>
   <!--   <a style="border-bottom: 1px solid #d9d9d9; " class="weui-cell weui-cell_access" href="javascript:;">
    <div class="weui-cell__hd"><label class="weui-label">开户银行</label></div>
    <div class="weui-cell__bd">
      <input class="weui-input red"  placeholder="¥0">
    </div>
    <div class="weui-cell__ft"></div>
  </a> -->
   <a style="border-bottom: 1px solid #d9d9d9; " class="weui-cell weui-cell_access" href="javascript:;">
    <div class="weui-cell__hd"><label class="weui-label">银行卡号</label></div>
    <div class="weui-cell__bd">
      <input class="weui-input red" type="number" pattern="[0-9]*" placeholder="银行卡号" name='banknum'  value='<?php echo ($row["banknum"]); ?>'>
    </div>
    <div class="weui-cell__ft"></div>
  </a>
  
  <div style="margin:2rem auto;width:15rem;border-radius:20px;" class='demos-content-padded'>
      <button style="background:#22a9fe;" href="javascript:;" class="weui-btn weui-btn_primary">保存</button>
    </div>
</div>
</form>
    <script src="/Application/Home/View//Public/static/js/jquery-2.1.4.js"></script>
    <script src="/Application/Home/View//Public/static/js/jquery-weui.min.js"></script>
    <script src="/Application/Home/View//Public/static/js/fastclick.js"></script>
    <script src="/Application/Home/View//Public/static/layer/layer.js"></script>
    <script src="/Application/Home/View//Public/static/js/jquery.form.js"></script>
    <script>
      $(function() {
        FastClick.attach(document.body);
      });
    </script>
</body>
</html>
 <script>
      function  chk_inp(){
          if($("[name='title']").val() == ''){
              $.alert('请输入名称!');
              return false;
          }
          if($("[name='code']").val() == ''){
              $.alert('请输入税号!');
              return false;
          }
      }
      
      $("#form1").ajaxForm(function(data){
           if(data==1){
               $.alert('设置成功!');
           }else{
               $.alert('设置失败，请稍后重试！');
           }
      })
      
      $("#mobile").select({
        title: "选择性别",
        items: [
          {
            title: "中国银行",
            value: "001",
          },
          {
            title: "中国农业银行",
            value: "002",
          },
           {
            title: "中国建设银行",
            value: "003",
          }, {
            title: "中国工商银行",
            value: "004",
          }, {
            title: "中国交通银行",
            value: "005",
          },
        ]
      });
    </script>